package edu.unf.cen6940.web;

import org.junit.Test;

import org.junit.runner.RunWith;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;

import org.springframework.context.ApplicationContext;

import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;

import org.springframework.test.context.ContextConfiguration;

import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.RequestScope;
import org.springframework.web.context.request.ServletRequestAttributes;
import org.springframework.web.context.request.SessionScope;

/**
 * Unit test for the <code>FacultyresearchtostudentController</code> controller.
 *
 * @see edu.unf.cen6940.web.FacultyresearchtostudentController
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
		"file:./resources/rms_test-security-context.xml",
		"file:./resources/rms_test-service-context.xml",
		"file:./resources/rms_test-dao-context.xml",
		"file:./resources/rms_test-web-context.xml" })
public class FacultyresearchtostudentControllerTest {
	/**
	 * The Spring application context.
	 *
	 */
	private ApplicationContext context;

	/**
	 * Test <code>editFacultyresearchtostudentFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GeteditFacultyresearchtostudentFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/editFacultyresearchtostudentFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>newFacultyresearchtostudentFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetnewFacultyresearchtostudentFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/newFacultyresearchtostudentFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>saveFacultyresearchtostudentFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetsaveFacultyresearchtostudentFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/saveFacultyresearchtostudentFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>confirmDeleteFacultyresearchtostudentFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetconfirmDeleteFacultyresearchtostudentFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/confirmDeleteFacultyresearchtostudentFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>deleteFacultyresearchtostudentFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetdeleteFacultyresearchtostudentFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/deleteFacultyresearchtostudentFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>selectFacultyresearchtostudentFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetselectFacultyresearchtostudentFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/selectFacultyresearchtostudentFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>listFacultyresearchtostudentFaculty()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetlistFacultyresearchtostudentFaculty() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/listFacultyresearchtostudentFaculty");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>editFacultyresearchtostudentFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GeteditFacultyresearchtostudentFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/editFacultyresearchtostudentFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>newFacultyresearchtostudentFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetnewFacultyresearchtostudentFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/newFacultyresearchtostudentFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>saveFacultyresearchtostudentFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetsaveFacultyresearchtostudentFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/saveFacultyresearchtostudentFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>confirmDeleteFacultyresearchtostudentFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetconfirmDeleteFacultyresearchtostudentFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/confirmDeleteFacultyresearchtostudentFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>deleteFacultyresearchtostudentFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetdeleteFacultyresearchtostudentFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/deleteFacultyresearchtostudentFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>selectFacultyresearchtostudentFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetselectFacultyresearchtostudentFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/selectFacultyresearchtostudentFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>listFacultyresearchtostudentFacultyresearch()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetlistFacultyresearchtostudentFacultyresearch() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/listFacultyresearchtostudentFacultyresearch");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>editFacultyresearchtostudentStudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GeteditFacultyresearchtostudentStudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/editFacultyresearchtostudentStudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>newFacultyresearchtostudentStudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetnewFacultyresearchtostudentStudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/newFacultyresearchtostudentStudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>saveFacultyresearchtostudentStudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetsaveFacultyresearchtostudentStudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/saveFacultyresearchtostudentStudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>confirmDeleteFacultyresearchtostudentStudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetconfirmDeleteFacultyresearchtostudentStudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/confirmDeleteFacultyresearchtostudentStudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>deleteFacultyresearchtostudentStudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetdeleteFacultyresearchtostudentStudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/deleteFacultyresearchtostudentStudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>selectFacultyresearchtostudentStudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetselectFacultyresearchtostudentStudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/selectFacultyresearchtostudentStudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>listFacultyresearchtostudentStudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetlistFacultyresearchtostudentStudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/listFacultyresearchtostudentStudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>indexFacultyresearchtostudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetindexFacultyresearchtostudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/indexFacultyresearchtostudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>selectFacultyresearchtostudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetselectFacultyresearchtostudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/selectFacultyresearchtostudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>editFacultyresearchtostudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GeteditFacultyresearchtostudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/editFacultyresearchtostudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>saveFacultyresearchtostudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetsaveFacultyresearchtostudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/saveFacultyresearchtostudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>newFacultyresearchtostudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetnewFacultyresearchtostudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/newFacultyresearchtostudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>confirmDeleteFacultyresearchtostudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetconfirmDeleteFacultyresearchtostudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/confirmDeleteFacultyresearchtostudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>deleteFacultyresearchtostudent()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetdeleteFacultyresearchtostudent() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/deleteFacultyresearchtostudent");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>facultyresearchtostudentControllerbinaryaction()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetfacultyresearchtostudentControllerbinaryaction() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/facultyresearchtostudentController/binary.action");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		FacultyresearchtostudentController controller = (FacultyresearchtostudentController) context.getBean("FacultyresearchtostudentController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Autowired to set the Spring application context.
	 *
	 */
	@Autowired
	public void setContext(ApplicationContext context) {
		this.context = context;
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("session", new SessionScope());
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("request", new RequestScope());
	}

	/**
	 * Returns a mock HttpServletRequest object.
	 *
	 */
	private MockHttpServletRequest getMockHttpServletRequest() {
		MockHttpServletRequest request = new MockHttpServletRequest();
		ServletRequestAttributes attributes = new ServletRequestAttributes(request);
		RequestContextHolder.setRequestAttributes(attributes);
		return request;
	}

	/**
	 * Returns a mock HttpServletResponse object.
	 *
	 */
	private MockHttpServletResponse getMockHttpServletResponse() {
		return new MockHttpServletResponse();
	}
}